function Init() {
}

Init.init = function ( interval ) {
    Log.logWithFacility( "INIT", "Starting Initialization" );
    Init.inited = 0;
    Init.interval = setInterval("Init.checkFinished()", interval);
};

Init.end = function () {
    Init.inited = 1;
    Log.logWithFacility( "INIT", "Ending Initialization" );
};

Init.checkFinished = function () {
    if( 0 != Init.inited ) {
	clearInterval( Init.interval );
	Log.logWithFacility( "INIT", "Hiding Initialization Screen" );
	document.getElementById("middle").innerHTML = "<td class=\"boxlight\" width=\"25%\" valign=\"top\"><table width=\"100%\" id=\"left\"></table></td><td class=\"boxlight\" valign=\"top\"><table width=\"100%\" height=\"100%\"><tr><td class=\"right\" id=\"right\" valign=\"top\"></td></tr></table></td>";
	deck.draw();
    }
};

Init.init( 1500 );


